package com.honghea.rxhttp.download.api;


import io.reactivex.rxjava3.core.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

public interface DownloadApi {

    @Streaming
    @GET
    Observable<ResponseBody> download(@Header("Range") String start, @Url String url);

    @Streaming
    @GET
    Observable<ResponseBody> download(@Url String url);

}
